package myenum;

public enum Fruit {
    APPLE ,BANANA ,WATERMELON ;
    private int value;
    private Fruit() {//默认构造器
        this.value = 0;
    }
    private Fruit(int value) {//带参数的构造器
        this.value = value;
    }
}
